#include <benchmark/benchmark.h>
#include <locale.h>
#include "sys/types.h"
#include "sys/epoll.h"
#include "sys/stat.h"
#include "fcntl.h"
#include "stdarg.h"
#include "wchar.h"
#include "time.h"
#include "math.h"
#include "string.h"
#include "stdlib.h"
#include "pthread.h"
#include "stdio.h"
#include "unistd.h"
#include "util.h"
#include "sys/syscall.h"

using namespace std;

static void Bm_function_Setlocale(benchmark::State &state)
{
    char *p;
    p = setlocale(LC_ALL, NULL);
    for (auto _ : state)
    { 
        benchmark::DoNotOptimize(p);
    }
    state.SetBytesProcessed(state.iterations());
}

MUSL_BENCHMARK(Bm_function_Setlocale);